package org.lc.oauth.component;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.lc.oauth.service.Oauth2Service;
import org.lc.platform.redis.dto.MessageDto;
import org.springframework.stereotype.Component;

/**
 * <p> @Title RedisMessageReceiver
 * <p> @Description Redis消息接收器（实现方式二）
 *
 * @author lc
 * 2024/6/27 18:28
 */
@Slf4j
@Component
public class RedisOAuthReceiver {

    @Resource
    private Oauth2Service oauth2Service;


    /**
     * 接收消息（在 RedisConfig.java 中反射调用）
     */
    public void receiveMessage(MessageDto message, String channel) {
        System.out.println(channel);
        System.out.println(message);
    }
}
